import service from '@/utils/request.js'
/**
 * 列表
 */
 export function GetList(data) {
    return service.request({
        method: 'post',
        url: '/news/getList/',
        data
    })
}
/**
 * 新增
 */
 export function AddInfo(data) {
    return service.request({
        method: 'post',
        url: '/news/add/',
        data
    })
}
/**
 * 编辑
 */

/**
 * 一级分类接口
 */
 export function AddFirstCategory(data) {
    return service.request({
        method: 'post',
        url: '/news/addFirstCategory/',
        data
    })
}
/**
 * 获取分类
 */
 export function GetCategory(data) {
    return service.request({
        method: 'post',
        url: '/news/getCategory/ ',
        data
    })
}
/**
 * 删除分类
 */
 export function DeleteCategory(data) {
    return service.request({
        method: 'post',
        url: '/news/deleteCategory/ ',
        data
    })
}
/**
 * 修改分类
 */
 export function EditCategory(data) {
    return service.request({
        method: 'post',
        url: '/news/editCategory/',
        data
    })
}
/**
 * 删除分类
 */
 export function DeleteInfo(data) {
    return service.request({
        method: 'post',
        url: '/news/deleteInfo/',
        data
    })
}